package com.ncloud.resman.entity;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ncloud.common.utils.excel.ExcelResources;
import com.ncloud.resman.conf.CustomJsonDateDeserializer;

public class Cabinet {
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long cabinetId   ;
	private String cabinetCode ;
	private Integer roomId     ;
	private String roomName     ;
	private Integer placeNum   ;
	private Integer state       ;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long createUser    ;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date createDate  ;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long updateUser    ;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date updateDate  ;
	private String remarks      ;
	public Long getCabinetId() {
		return cabinetId;
	}
	public void setCabinetId(Long cabinetId) {
		this.cabinetId = cabinetId;
	}
	@ExcelResources(title="机柜编号",order=0)
	public String getCabinetCode() {
		return cabinetCode;
	}
	public void setCabinetCode(String cabinetCode) {
		this.cabinetCode = cabinetCode;
	}
	@ExcelResources(title="机房编号",order=1)
	public Integer getRoomId() {
		return roomId;
	}
	public void setRoomId(Integer roomId) {
		this.roomId = roomId;
	}
	@ExcelResources(title="机房名称",order=2)
	public String getRoomName() {
		return roomName;
	}
	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}
	@ExcelResources(title="机位数量",order=3)
	public Integer getPlaceNum() {
		return placeNum;
	}
	public void setPlaceNum(Integer placeNum) {
		this.placeNum = placeNum;
	}
	@ExcelResources(title="机柜状态",order=4)
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public Long getCreateUser() {
		return createUser;
	}
	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}
	public Date getCreateDate() {
		return createDate;
	}
	@JsonDeserialize(using = CustomJsonDateDeserializer.class)
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Long getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(Long updateUser) {
		this.updateUser = updateUser;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	@JsonDeserialize(using = CustomJsonDateDeserializer.class)
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
}
